/**
 * sysUserService
 * 项目名称:分秒金融
 *
 * @author lunli
 *
 * 功能描述:系统用户管理
 * 
 * 历史版本:2017-03-28 v1.0.0 lunli  创建:
 * 
 */
package com.fmjr.sys.sysUser.service;

import com.fmjr.common.base.exception.BusinessException;
import com.fmjr.common.base.util.Pager;
import com.fmjr.sys.sysUser.bean.SysUser;


public interface ISysUserService{
	
	
	/***
	 * 根据名字查询
	 * @param name
	 * @throws BusinessException
	 */
	public SysUser findByUsername(String username) throws BusinessException;

	/**
	 * 根据条件查询系统用户记录
	 * @author lunli
	 * @param  Pager<SysUser> pager
	 * @return SysUserList
	 * @throws BusinessException
	 */
	public void selectSysUserList(Pager<SysUser> pager) throws BusinessException;
	
	/**
	 * 根据ID查询系统用户记录
	 * @author lunli
	 * @param Long id
	 * @return SysUser
	 * @throws BusinessException
	 */
	public SysUser selectSysUserById(Long id) throws BusinessException;

	/**
	 *  删除系统用户记录
	 * @author lunli	 
	 * @param id
	 * @throws BusinessException
	 */
	public int deleteSysUserById(Long id) throws BusinessException;
	
	/**
	 * 修改系统用户记录
	 * @author lunli
	 * @param sysUser
	 * @throws BusinessException
	 */
	public int updateSysUser(SysUser sysUser) throws BusinessException;

	/**
	 * 新增系统用户记录
	 * @author lunli
	 * @param sysUser
	 * @return
	 * @throws BusinessException
	 */
	public int createSysUser(SysUser sysUser) throws BusinessException;
	
}
